Since the referencing commands are the ones which are
most often played with (because
so many people have their own styles for referencing things) it
is worth spending a few moments giving you a better understanding
of the various subcommands which go into their construction.
First, you should know that the current value of the number
assigned to the last reference
is filed away under the name
referencecount.
To get hold of this number you type
number
referencecount
and then TEX will type out the current value of this number.
PHYZZX attaches this number to a word by invoking
the command
refmark.
The syntax of the control sequence
refmark is
refmark{ number or name of reference}
When this command is issued PHYZZX tells TEX to generate a
superscripted version of the material appearing inside the braces
and attach it to the word immediately preceding the place where you
typed this control sequence.
It is not advisable to leave spaces between the word
and the command
refmark (or for that matter
ref,
Ref
and
refend),
because if space is left it might creep into the text.
The command
refmark does one more thing, it changes the
appearance of the reference mark depending upon whether the paper
is in Nuclear Physics or Physical Review format.
Since I have referred to
refmark as a subcommand
it is only fair to give an example of how it is used.
One place is in the definition of the command
refend.
PHYZZX defines the command
refend to mean
refmark{
number
referencecount}
Using
REF to define a reference outside
of a forbidden region and using
refend inside this region
to generate the reference mark provides only a partial solution to the
problem we have been discussing.
This is because
refend causes the current value
of
referencecount to be printed.
If, for some reason you wish to delay the printing of
several reference names; or, if you wish to mix and match various
references and stick them in a single reference mark, you can
do this by typing
refmark{
junkname … }
In this way you can gain all but stylistic control
of your reference marks.
It is still true that
refmark changes the form of the
reference mark depending upon whether the paper is headed for
Phys.Rev. or Nucl.Phys.
To gain total control of your reference marks
you need to use the command
attach.
The syntax of this command is
attach{ stuff }
What
attach does is put stuff into math mode,
make a superscript out of it and attach it to the word that
comes before.
It also spaces from that word so as to make the attached
quantity look most natural.
The
attach command does nothing at all to the reference
mark and it is independent of the format of the paper.